//
//  ViewController.m
//  JKTokenDateJudge
//
//  Created by 王冲 on 2018/9/10.
//  Copyright © 2018年 JK科技有限公司. All rights reserved.
//

#import "ViewController.h"
#import "DateJudge.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    int a = [[DateJudge new]tokenCompare];
    
    // 返回1:过期, 0: 相等, -1: 没过期
    switch (a) {
        case 1:
            NSLog(@"过期");
            break;
        case 0:
            NSLog(@"相等");
            break;
        case -1:
            NSLog(@"没过期");
            break;
        default:
            break;
    }
    
    
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
